package org.kjtc.mapper;

import org.apache.ibatis.annotations.*;
import org.kjtc.entity.Log;

import java.util.List;

@Mapper
public interface LogMapper {

     @Insert("insert into log (LogID,LogContext,Date,UserName) values(#{LogID},#{LogContext},now(),#{UserName})")
     int insertLog(@Param("LogID")String LogID,@Param("LogContext") String LogContext,@Param("UserName")  String UserName);


     @SelectProvider(type =AllProvider.class, method = "getLogMessage")
     List<Log> getLogMessage(Log log);


}
